package com.example.demo.springceliemodel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName LoginStrategyServiceImpl
 * @Author lys4134
 * @Date 2022/03/04 10:43:57
 * @Description LoginServiceImpl
 * @Version 1.0
 **/
@Service
public class LoginStrategyServiceImpl {
    @Autowired
    private LoginFactory loginFactory;

    public String login(String type) {
        return loginFactory.getLoginHandle(type).handleLoginStrategy(type);
    }
}
